package com.niit.project.entity;

//管理员的实体类，里面需要写清楚和管理员相关的私有属性，比如id,name,password
//同时还要构建有参构造和无参构造，方便新建一个对象，
// 还要写相应的setter和getter方法，主要目的是能够得到和设置实体类中的私有属性值
public class Admin {
    private int id;
    private String name;
    private String password;

    public Admin(int id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    public Admin() {
    }


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
